home *** CD-ROM | disk | FTP | other *** search
/ Galleria D'arte: Manet / Manet.iso / Dati / Slideshow.dxr / 00006_Switch Mouseenter NOTEBIOGRAFICHE.ls < prev    next >
Encoding:
Text File  |  2000-12-21  |  1.6 KB  |  35 lines

  1. property pCastORIG, pCastFB1, pFB2, pCastFB2, pCUR, pMASK, pCURdn, pMASKdn
  2.  
  3. on getPropertyDescriptionList
  4.   pippo = the memberNum of sprite the currentSpriteNum
  5.   pluto = pippo + 1
  6.   paperino = pippo + 2
  7.   propertyDescriptionList = [#pCastORIG: [#comment: "Numero elemento del Cast di origine del bottone", #format: #integer, #default: pippo], #pCastFB1: [#comment: "Numero elemento del Cast del primo feedback", #format: #integer, #default: pluto], #pFB2: [#comment: "E' previsto il secondo feedback?", #format: #boolean, #default: 0], #pCastFB2: [#comment: "Eventuale numero elemento del Cast del secondo feedback", #format: #integer, #default: paperino], #pCUR: [#comment: "Numero elemento del Cast da utilizzare come cursore", #format: #bitmap, #default: member(100)], #pMASK: [#comment: "Maschera cursore", #format: #bitmap, #default: member(101)], #pCURdn: [#comment: "Numero elemento del Cast da utilizzare come cursore per il mousedown", #format: #bitmap, #default: member(102)], #pMASKdn: [#comment: "Maschera cursore", #format: #bitmap, #default: member(103)]]
  8.   return propertyDescriptionList
  9. end
  10.  
  11. on mouseWithin me
  12.   global gVerticaleVisibile
  13.   if gVerticaleVisibile = 0 then
  14.     set the memberNum of sprite the currentSpriteNum to pCastFB1
  15.     cursor(280)
  16.     updateStage()
  17.   end if
  18. end
  19.  
  20. on mouseLeave me
  21.   set the memberNum of sprite the currentSpriteNum to pCastORIG
  22.   cursor(-1)
  23.   updateStage()
  24. end
  25.  
  26. on mouseDown me
  27.   cursor(280)
  28.   repeat while the stillDown
  29.     if pFB2 = 1 then
  30.       set the memberNum of sprite the currentSpriteNum to pCastFB2
  31.     end if
  32.     updateStage()
  33.   end repeat
  34. end
  35.